package com.purchase.manage.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.purchase.manage.damian.OrderQuotation;
import com.purchase.manage.mapper.OrderQuotationMapper;
import com.purchase.manage.service.IOrderQuotationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 询价表 服务实现类
 * </p>
 *
 * @author chuan
 * @since 2023-07-06
 */


@Service
public class OrderQuotationServiceImpl extends ServiceImpl<OrderQuotationMapper, OrderQuotation> implements IOrderQuotationService {
    @Autowired
    OrderQuotationMapper orderQuotationMapper;

   public int insertQuotation(OrderQuotation orderQuotation){
        if(orderQuotationMapper.insertOrderQuotation(orderQuotation)<1){
            throw new SecurityException("添加失败");
        }
        return 1;
    }
}
